package com.huadi.ssm.Service;

import com.huadi.ssm.dao.ApplyrecordMapper;
import com.huadi.ssm.po.Applyrecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public class ApplyrecordImpl implements ApplyrecordService{

    ApplyrecordMapper applyrecordMapper;

    public void setApplyrecordMapper(ApplyrecordMapper applyrecordMapper) {
        this.applyrecordMapper = applyrecordMapper;
    }

    @Override
    public int addApplyrecord( String evidenceId, String evidenceState,  String submitterId,  String submitterName)
    {
        return applyrecordMapper.addApplyrecord(evidenceId,evidenceState,submitterId,submitterName);
    }

    @Override
    public int deleteApplyrecordById(int evidenceApplyId) {
        return applyrecordMapper.deleteApplyrecordById(evidenceApplyId);
    }

    @Override
    public int updateApplyrecord(Applyrecord applyrecord) {
        return applyrecordMapper.updateApplyrecord(applyrecord);
    }

    @Override
    public Applyrecord findApplyrecordById(int evidenceApplyId) {
        return applyrecordMapper.findApplyrecordById(evidenceApplyId);
    }

    @Override
    public List<Applyrecord> findAllApplyrecord() {
        return applyrecordMapper.findAllApplyrecord();
    }

    @Override
    public int checkApply(int evidenceApplyId,String judgerId,String judgerName,String judge,String judgeReason) {
       return  applyrecordMapper.checkApply(evidenceApplyId,judgerId,judgerName,judge,judgeReason);
    }
    public List<Applyrecord> findAllApplyrecordForONE(String submitterId){
        return applyrecordMapper.findAllApplyrecordForONE(submitterId);
    }
}
